public class Book {
    private int id;
    private String name;
    private double wage;
    private String  publisher;
    private int page;

    public Book(int id, String name, double wage, String publisher, int page) {
        this.id = id;
        this.name = name;
        this.wage = wage;
        this.publisher = publisher;
        this.page = page;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getWage() {
        return wage;
    }

    public void setWage(double wage) {
        this.wage = wage;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", wage=" + wage +
                ", publisher='" + publisher + '\'' +
                ", page=" + page +
                '}';
    }
}
